
const Controller = require('../../core/Controller');
const query = require('../../core/db');


class otherController extends Controller {
  constructor() {
    super();
  }
  async getTime(ctx) {
    //console.log('res =====', res);
    let timestamp=new Date().getTime();
    ctx.response.body = timestamp;
  }

  async getOtherList(ctx) {
    let sql = 'select * from other where 1=1';
    let values = [];
    ctx.response.body = await query(sql, values).then( results => { return results; });
  }
}

module.exports = new otherController;
